<template>
    <div class="item-content  bg-img" >
        <div class="item-title bg-img">
            <span>报警统计</span>
        </div>
        <div class="main">
            <AlramEchart></AlramEchart>
        </div>
    </div>
</template>

<script setup>
    import {defineAsyncComponent} from "vue";

    const AlramEchart = defineAsyncComponent(() => import('@/components/echarts/alramEchart.vue'));

</script>

<style scoped lang="scss">
    .main{
        height: calc(100% - 11%);
    }

    .item-content::before{
        border-left: 2px solid #4fd5e1;
        position: absolute;
        width: 8px;
        height: 8px;
        opacity: 1;
        content: "";
        border-top: 2px solid #4fd5e1;
        top: 0px;
        border-radius: 2px;
        left: 0px;
    }
    .item-content::after{
        position: absolute;
        width: 8px;
        height: 8px;
        opacity: 1;
        content: "";
        border-bottom: 2px solid #4fd5e1;
        bottom: -1px;
        border-radius: 2px;
        border-right: 2px solid #4fd5e1;
        right: 0px;
    }

    .item-content{
        position: relative;
        border-radius: 4px;
        background-color: rgb(40 57 111 / 47%);
        height: 33%;
        color:#fff;
        .item-title{
            font-size: 18px;
            background-size: 100% 100%;
            background-image: url("@/assets/imgs/31.png");
            height: 11%;
            padding-left: 10%;
            display: flex;
            align-items: center;
            span{
                background: linear-gradient(to bottom, #fff, #055eff);
                color: transparent;
                background-clip: text;
                font-weight: bold;
            }
        }
    }

</style>